djbuch.kapitel_19
Class NotesTestObjects

java.lang.Object
  |
  +--djbuch.kapitel_19.NotesTestObjects

public class NotesTestObjects
extends java.lang.Object

Stellt häufig benötigte Domino Objekte für einen Test bereit.

Author:
Thomas Ekert

Constructor Summary
NotesTestObjects()
           
 
Method Summary
 Database getDb()
          Gibt eine vordefinierte Testdatenbank zurück
 Document getDocumentContext()
          Erzeugt ein Kontext Dokument, falls noch keines existiert.
 Session getSession()
          Gibt die Session zurück, über die der Server erreichbar ist.
 void recycle()
          löscht (!)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotesTestObjects

public NotesTestObjects()
Method Detail

getDb

public Database getDb()
               throws NotesException
Gibt eine vordefinierte Testdatenbank zurück

Returns:
geöffnete Test Datenbank
Throws:
NotesException

getDocumentContext

public Document getDocumentContext()
                            throws NotesException
Erzeugt ein Kontext Dokument, falls noch keines existiert.

Returns:
- not Null
Throws:
NotesException

getSession

public Session getSession()
                   throws NotesException
Gibt die Session zurück, über die der Server erreichbar ist.

Returns:
notnull
Throws:
NotesException

recycle

public void recycle()
löscht (!) das Kontext Document, falls vorhanden und recycled alle internen Domino Objekte